import requests


def login_token():
    resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                         headers={"Content-Type": "application/json"},
                         json={
                             "mobile": "13800000002",
                             "password": "123456"
                         })

    return resp
if __name__ == '__main__':
    a = login_token()
    print(a.json())
